#include <stdio.h>
#include <string.h>
int main()
{
  int m,n;
  char str1[6],str2[6]; 
  printf("inpur string:"); 
  gets(str1);
  printf("which character that begin to copy?"); 
  scanf("%d", &m);
  int *p1=strlen(str1);
  int *p2=strlen(str2);
  if (strlen(str1)<m)
  { 
  printf("input error!"); 
  }
  else
    {   while (n<m-1)
       {
         n++; p1++;
	}
   while ( * p1!='\0')
   {* p2=* p1;
    p1++;p2++;
   } 
    *p2='\0';
   }
   {
     printf("result:%s\n",str2);
   }
     return 0;
}
